package com.yobol.jgrowth.service;

import com.yobol.jgrowth.domain.Article;

import java.util.List;

/**
 * Article Service
 *
 * @author
 * @create 2018-04-04 18:05
 **/

public interface ArticleService {

    int addArticle(Article  article);

    List<Article> getArticlesByTag(String tagByIndex);

    List<Article> getArticlesByUsername(String username);

    Article getArticleByAid(int aid);

    int deleteArticleByAid(int aid);

    int updateArticleByPrimaryKey(Article article);

    List<Article> getArticlesByKeywords(String keywords);

    int updateArticleCommentedCtr(Article article);

    int updateArticleScannedCtr(Article article);

    List<Article> getArticlesOfBanner(int num);

    List<Article> getArticlesByTagRank(String tag, int num);
}
